package com.qf.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("pay")
public class Pay {

    @TableId(type = IdType.AUTO)
    private Integer payId;
    private String orderOn;
    private String payInfo;
    private String tradeNo;
    private String totalAmount;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    private String tradeStatus;

    private Integer payWay;

    private Address address;



}
